#pragma once

#include <memory>
#include <mutex>
#include "json.h"

class ConfigManager{
public:
    using Ptr = std::shared_ptr<ConfigManager>; 
    static Ptr Instance();
    ConfigManager();

    ~ConfigManager();

    void RegistRPC();
private:
    bool getDeviceConfig(const Json::Value& req_params, Json::Value& res_result, std::string& errinfo);
    bool setDeviceConfig(const Json::Value& req_params, Json::Value& res_result, std::string& errinfo);
};